using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Wiki_List -  维基 - 对象继承类
    /// </summary>
    [MetadataType(typeof(WikiListValidaTion))]
    public class WikiList : IWikiList<WikiList>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class WikiListValidaTion
       {

     

        /// <summary>
        /// 维基ID
        /// </summary>
        [Display(Name ="维基ID")]
        [Required]
        [StringLength(36)]
        public String WikiId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 当前版本ID
        /// </summary>
        [Display(Name ="当前版本ID")]
        [Required]
        [StringLength(36)]
        public String VerId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 所属索引ID
        /// </summary>
        [Display(Name ="所属索引ID")]
        [Required]
        [StringLength(36)]
        public String PathId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否锁定
        /// </summary>
        [Display(Name ="是否锁定")]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsLock
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name ="状态")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Status
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 编辑次数
        /// </summary>
        [Display(Name ="编辑次数")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int EidtCount
        {
         get; set; 
        }


       
     

        /// <summary>
        /// Sno
        /// </summary>
        [Display(Name ="Sno")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
